Self-Test ^^^^^ **Definition:** * Tests that do not compare a result with an expected value, but with the result itself **Code Example:** .. code-block:: java @Test public void shouldGetMethodsForPoland() { //given List all = Lists.newArrayList(PaymentMethod.values()); List methodsAvailableInPoland = Lists.newArrayList(); for (PaymentMethod method : all) { if (method.isEligibleForCountry("PL")) { methodsAvailableInPoland.add(method); } } //when List methodsForCountry = PaymentMethod .getMethodsForCountry("PL", all); //then assertThat(methodsForCountry).isEqualTo(methodsAvailableInPoland); } **References:** .. admonition:: Quality attributes * :octicon:`file-code;1em` - Code Example * :octicon:`comment-discussion;1em` - Cause and Effect * :octicon:`graph;1em` - Frequency * :octicon:`sync;1em` - Refactoring * `Bad tests, good tests `_ :octicon:`file-code;1em` :octicon:`comment-discussion;1em` :octicon:`sync;1em`